/***************************************************************************//**
 * @file GUI/GUI_DataInp.h
 * @author  Marek M. Cel <marekcel@mscsim.org>
 *
 * @section LICENSE
 *
 * Copyright (C) 2014 Marek M. Cel
 *
 * This file is part of MScSim. You can redistribute and modify it under
 * the terms of GNU General Public License as published by the Free Software
 * Foundation; either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Further information about the GNU General Public License can also be found
 * on the world wide web at http://www.gnu.org.
 ******************************************************************************/
#ifndef GUI_DATA_INP_H
#define GUI_DATA_INP_H

////////////////////////////////////////////////////////////////////////////////

#include <mscsim_defs.h>
#include <CGI/CGI_DataInp.h>

////////////////////////////////////////////////////////////////////////////////

/** GUI input data structure. */
struct GUI_DataInp
{
    struct FlightData
    {
        double altitude_asl;        ///< [m] altitude above sea level
        double altitude_agl;        ///< [m] altitude above ground level

        double airspeed;            ///< [m/s] airspeed
        double climbRate;           ///< [m/s] climb rate
        double machNumber;          ///< [-] Mach number

        double rollAngle;           ///< [rad] roll angle
        double pitchAngle;          ///< [rad] pitch angle
        double heading;             ///< [rad] true heading

        double angleOfAttack;       ///< [rad] angle of attack
        double sideslipAngle;       ///< [rad] angle of sideslip

        double course;              ///< [rad] course
        double pathAngle;           ///< [rad] path angle

        double slipSkidAngle;       ///< [rad] slip/skid angle

        double rollRate;            ///< [rad/s] roll rate
        double pitchRate;           ///< [rad/s] pitch rate
        double yawRate;             ///< [rad/s] yaw rate
        double turnRate;            ///< [rad/s] turn rate

        double Gx;                  ///< [-] X component of G-Force vector expressed in BAS
        double Gy;                  ///< [-] Y component of G-Force vector expressed in BAS
        double Gz;                  ///< [-] Z component of G-Force vector expressed in BAS
    };

    CGI_DataInp cgiDataInp;     ///< CGI input data
    FlightData  flightData;     ///< flight data
};

////////////////////////////////////////////////////////////////////////////////

#endif // GUI_DATA_INP_H
